<style>
    .labelfont{
        font-size:12px;
    }
</style>
<div id="p" class="easyui-panel" title="接续记录器" style="width:100%;height:140px;padding:10px;">
    <form action="" id="addcomrecform">
        <div>
            <label for="" class="labelfont">接入时间：</label>
            <input type="text" class="easyui-datetimebox" required name="date">
            <label for="" class="labelfont">主叫号码：</label>
            <input type="text" class="easyui-textbox" required style="width:90px" name="czj">
            <label for="" class="labelfont">联系电话：</label>
            <input type="text" class="easyui-textbox" style="width:90px" name="cnumber">
            <label for="" class="labelfont">小结：</label>
            <input class="easyui-combotree" data-options="url:'./tpl/tree_xjlb.json',method:'get',required:true" style="width:150px;" name="xjlb"></div>
        <div>
            <label for="" class="labelfont">客户反映原因：</label>
            <input type="text" class="easyui-textbox" name="yuanyin">
            <label for="" class="labelfont">我部答复：</label>
            <input type="text" class="easyui-textbox" name="dafu">
            <label for="" class="labelfont">处理状态：</label>
            <select class="easyui-combobox" name="isend" style="width:50px;">
                <option value="是">是</option>
                <option value="否">否</option>
            </select>
            <label for="" class="labelfont">话务员：</label>
            <input type="text" class="easyui-textbox" style="width:90px" value="<?php echo $MEMBER->getnickname($now_user); ?>" name="ctlman" id="ctlman"></div>
        <div>
            <div>
                <label for="" class="labelfont">客户尊称：</label>
                <input type="text" class="easyui-textbox" name="cname">
                <label for="" class="labelfont">特殊备注：</label>
                <input type="text" class="easyui-textbox" name="bz" style="width:450px">
            </div>
            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="addcomrec()">新增话后小结</a>
        </div>
    </form>
</div>

<div id="p" class="easyui-panel" title="接续总表" style="width:100%;">
    <table class="easyui-datagrid" style="width:100%;"
        data-options="singleSelect:true,collapsible:true,toolbar: '#tb'" id="hotlinecltb">
        <thead>
            <tr>
                <th data-options="field:'date',width:90,align:'center'">日期</th>
                <th data-options="field:'cname',width:70">客户姓名</th>
                <th data-options="field:'czj',width:90,align:'center'">主叫号码</th>
                <th data-options="field:'cnumber',width:90">联系电话</th>
                <th data-options="field:'stt',width:80,align:'center'">通话开始时间</th>
                <th data-options="field:'ste',width:80,align:'center'">通话结束时间</th>
                <th data-options="field:'leaght',width:80,align:'center'">通话时长</th>
                <th data-options="field:'xjlb',width:80,align:'center'">小结类别</th>
                <th data-options="field:'isend',width:80,align:'center'">是否已处理</th>
                <th data-options="field:'yuanyin',width:80,align:'center'">客户反映原因</th>
                <th data-options="field:'dafu',width:80,align:'center'">我部答复</th>
                <th data-options="field:'ctlman',width:110,align:'center'">话务员</th>
            </tr>
        </thead>
    </table>
    <div id="tb" style="height:auto">
        <div>
            <form id="gdlb" name="gongdan" method="post" action="index.php?action=chekgdlb">
                <label for="lxnumber">
                    <span class="labelfont">主叫号码：</span>
                </label>
                <input type="text" class="easyui-textbox" name="zjhm" id="zjhm"  />
                <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="searchxiaojie('condition')">搜索</a>
                <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="ipcsv();">导入CSV智能填充时间</a>
            </form>
        </div>
    </div>
</div>



<script>
    //自动获取所有小结记录
    searchxiaojie('all');
</script>